package com.winhxd.b2c.order.dao;

import com.winhxd.b2c.common.domain.order.condition.OrderAfterSaleCondition;
import com.winhxd.b2c.common.domain.order.condition.OrderRefundDescCondition;
import com.winhxd.b2c.common.domain.order.model.OrderCancelInfo;
import com.winhxd.b2c.common.domain.order.vo.OrderCancelInfoVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderCancelInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OrderCancelInfo record);

    int insertSelective(OrderCancelInfo record);

    OrderCancelInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderCancelInfo record);

    int updateByPrimaryKey(OrderCancelInfo record);

    /**
     * @author zhanghuan
     * @date  2018年10月26日 下午2:11:57
     * @Description 查询订单取消原因信息
     */
    List<OrderCancelInfoVO> selectOrderCancelInfoVOByCondition(OrderAfterSaleCondition condition);

    /**
     *@author: zhangyanwei
     *@date: 2019/1/12 15:34
     *@Description: 根据订单号和SKU查询退款原因
     *@param: [orderNo, sku]
     *@return: java.lang.String
    */
    String selectCancleReasonByCondition(OrderRefundDescCondition condition);
}